package cn.xiaopengstack.domain.credit.repository;

import cn.xiaopengstack.domain.credit.model.aggregate.TradeCreditAggregate;
import cn.xiaopengstack.domain.credit.model.entity.CreditAccountEntity;

/**
 * @author jiangyangang
 */
public interface ICreditRepository {

    /**
     * 保存积分订单
     * @param aggregate
     */
    void saveUserCreditTradeOrder(TradeCreditAggregate aggregate);

    /**
     * 查询用户积分账户
     * @param userId
     * @return
     */
    CreditAccountEntity queryUserCreditAccount(String userId);
}
